package com.lizicloud.user.userinfo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * 更新用户信息DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "更新用户信息")
public class UpdateUserDTO {
    
    @Schema(description = "用户ID")
    private Long id;
    
    @Schema(description = "用户名")
    @NotBlank(message = "用户名不能为空")
    @Size(min = 2, max = 20, message = "用户名长度必须在2-20位之间")
    private String username;
    
    @Schema(description = "邮箱地址")
    @Email(message = "邮箱格式不正确")
    private String email;
    
    @Schema(description = "手机号码")
    private String phone;
    
    @Schema(description = "用户角色")
    private String role;
    
    @Schema(description = "账号状态")
    private Integer status;
    
    @Schema(description = "头像URL")
    private String avatar;
    
    @Schema(description = "备注")
    private String remark;
}